import axios from '@/libs/api.request'

export class TreatmentBasicsTypeApi {
  // 获取待遇享受参保险种列表
  static getInsuranceTypeList (params) {
    return axios.request({
      url: '/TreatmentBasicsType/GetInsuranceTypeList',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 根据参保险种、待遇名称获取待遇类型列表
  static getList (params) {
    return axios.request({
      url: '/TreatmentBasicsType/GetList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 根据参保险种、待遇名称获取待遇类型列表-新增编辑
  static getBasicsTypeList (params) {
    return axios.request({
      url: '/TreatmentBasicsType/GetBasicsTypeList',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 保存待遇享受类型
  static saveBasicsType (params) {
    return axios.request({
      url: '/TreatmentBasicsType/SaveBasicsType',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 根据ID待遇类型数据
  static getModel (params) {
    return axios.request({
      url: '/TreatmentBasicsType/GetModel',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 通过待遇类型ID删除待遇享受类型
  static delete (params) {
    return axios.request({
      url: '/TreatmentBasicsType/Delete',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 待遇类型城市附件上传
  static treatmentAnnexUpload (params) {
    return axios.request({
      url: '/TreatmentBasicsType/TreatmentAnnexUpload',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 下载附件
  static treatmentDownLoadAnnex (params) {
    return axios.request({
      url: '/TreatmentBasicsType/TreatmentDownLoadAnnex',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 删除附件
  static treatmentDeleteAnnex (params) {
    return axios.request({
      url: '/TreatmentBasicsType/TreatmentDeleteAnnex',
      method: 'DELETE',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 删除城市附件
  static deleteTreatmentBasicsCitys (params) {
    return axios.request({
      url: '/TreatmentBasicsType/DeleteTreatmentBasicsCitys',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }
  
  // 保存参数城市配置
  static saveTreatmentBasicsCitys (params) {
    return axios.request({
      url: '/TreatmentBasicsType/SaveTreatmentBasicsCitys',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 根据待遇类型编码获取待遇类型城市附件列表
  static getBasicsTypeAnnexList (params) {
    return axios.request({
      url: '/TreatmentBasicsType/GetBasicsTypeAnnexList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导入
  static import (params) {
    return axios.request({
      url: '/TreatmentBasicsType/Import',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出
  static export (params) {
    return axios.request({
      url: '/TreatmentBasicsType/Export',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 状态修改
  static updateTypeStatus (params) {
    return axios.request({
      url: '/TreatmentBasicsType/UpdateTypeStatus',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 根据参保类型和人员ID获取个人参保信息
  static getEmployeeConfigList (params) {
    return axios.request({
      url: '/TreatmentEnjoyManage/GetEmployeeConfigList',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }

  // 获取所属客服
  static getCustomerServiceList (params) {
    return axios.request({
      url: '/TreatmentEnjoyManage/GetCustomerServiceList',
      method: 'get',
      enctype: 'multipart/form-data',
      params: params
    })
  }
}